package util;

import java.sql.Connection;
import java.sql.DriverManager;

public class DataBaseConnection {
	public Connection getConnection(){
		Connection conn=null;
		try {
			Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance ();
			conn = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=HPublic00", "sa", "7654");
		} catch (Throwable e) {
			e.printStackTrace();
		}
		return conn;
	}
}
